<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Signals</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GObject Reference Manual">
<link rel="up" href="rn01.html" title="API Reference">
<link rel="prev" href="gobject-GParamSpec.html" title="GParamSpec">
<link rel="next" href="gobject-Closures.html" title="Closures">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="preface" href="pr01.html" title="Introduction">
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;Concepts">
<link rel="chapter" href="chapter-intro.html" title="Background">
<link rel="chapter" href="chapter-gtype.html" title="The GLib Dynamic Type System">
<link rel="chapter" href="chapter-gobject.html" title="The GObject base class">
<link rel="chapter" href="chapter-signal.html" title="The GObject messaging system">
<link rel="reference" href="rn01.html" title="API Reference">
<link rel="reference" href="rn02.html" title="Tools Reference">
<link rel="part" href="pt02.html" title="Part&#160;IV.&#160;Tutorial">
<link rel="chapter" href="howto-gobject.html" title="How to define and implement a new GObject">
<link rel="chapter" href="howto-interface.html" title="How to define and implement interfaces">
<link rel="chapter" href="howto-signals.html" title="How to create and use signals">
<link rel="part" href="pt03.html" title="Part&#160;V.&#160;Related Tools">
<link rel="chapter" href="tools-gob.html" title="GObject builder">
<link rel="chapter" href="tools-ginspector.html" title="Graphical inspection of GObjects">
<link rel="chapter" href="tools-refdb.html" title="Debugging reference count problems">
<link rel="chapter" href="tools-gtkdoc.html" title="Writing API docs">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gobject-GParamSpec.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GObject Reference Manual</th>
<td><a accesskey="n" href="gobject-Closures.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2952695" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2954560" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gobject-Signals"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2952695"></a><span class="refentrytitle">Signals</span>
</h2>
<p>Signals &#8212; A means for customization of object behaviour and a general purpose notification mechanism</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;glib-object.h&gt;


                    <a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a>;
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            (<a class="link" href="gobject-Signals.html#GSignalAccumulator">*GSignalAccumulator</a>)               (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_accu,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *handler_return,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
typedef             <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a>;
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            (<a class="link" href="gobject-Signals.html#GSignalEmissionHook">*GSignalEmissionHook</a>)              (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_param_values,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *param_values,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
enum                <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a>;
enum                <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a>;
                    <a class="link" href="gobject-Signals.html#GSignalQuery">GSignalQuery</a>;
#define             <a class="link" href="gobject-Signals.html#G-SIGNAL-TYPE-STATIC-SCOPE:CAPS">G_SIGNAL_TYPE_STATIC_SCOPE</a>
#define             <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-MASK:CAPS">G_SIGNAL_MATCH_MASK</a>
#define             <a class="link" href="gobject-Signals.html#G-SIGNAL-FLAGS-MASK:CAPS">G_SIGNAL_FLAGS_MASK</a>
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-new">g_signal_new</a>                        (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> class_offset,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         ...);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-newv">g_signal_newv</a>                       (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> *param_types);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-new-valist">g_signal_new_valist</a>                 (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         va_list args);
void                <a class="link" href="gobject-Signals.html#g-signal-query">g_signal_query</a>                      (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a class="link" href="gobject-Signals.html#GSignalQuery">GSignalQuery</a> *query);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-lookup">g_signal_lookup</a>                     (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype);
const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        <a class="link" href="gobject-Signals.html#g-signal-name">g_signal_name</a>                       (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>*              <a class="link" href="gobject-Signals.html#g-signal-list-ids">g_signal_list_ids</a>                   (<a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *n_ids);
void                <a class="link" href="gobject-Signals.html#g-signal-emit">g_signal_emit</a>                       (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         ...);
void                <a class="link" href="gobject-Signals.html#g-signal-emit-by-name">g_signal_emit_by_name</a>               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         ...);
void                <a class="link" href="gobject-Signals.html#g-signal-emitv">g_signal_emitv</a>                      (const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *instance_and_params,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_value);
void                <a class="link" href="gobject-Signals.html#g-signal-emit-valist">g_signal_emit_valist</a>                (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         va_list var_args);
#define             <a class="link" href="gobject-Signals.html#g-signal-connect">g_signal_connect</a>                    (instance, detailed_signal, c_handler, data)
#define             <a class="link" href="gobject-Signals.html#g-signal-connect-after">g_signal_connect_after</a>              (instance, detailed_signal, c_handler, data)
#define             <a class="link" href="gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a>            (instance, detailed_signal, c_handler, data)
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-connect-object">g_signal_connect_object</a>             (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GCallback">GCallback</a> c_handler,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> gobject,
                                                         <a class="link" href="gobject-Signals.html#GConnectFlags">GConnectFlags</a> connect_flags);
enum                <a class="link" href="gobject-Signals.html#GConnectFlags">GConnectFlags</a>;
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-connect-data">g_signal_connect_data</a>               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GCallback">GCallback</a> c_handler,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                                         <a class="link" href="gobject-Closures.html#GClosureNotify">GClosureNotify</a> destroy_data,
                                                         <a class="link" href="gobject-Signals.html#GConnectFlags">GConnectFlags</a> connect_flags);
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-connect-closure">g_signal_connect_closure</a>            (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> after);
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-connect-closure-by-id">g_signal_connect_closure_by_id</a>      (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> after);
void                <a class="link" href="gobject-Signals.html#g-signal-handler-block">g_signal_handler_block</a>              (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);
void                <a class="link" href="gobject-Signals.html#g-signal-handler-unblock">g_signal_handler_unblock</a>            (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);
void                <a class="link" href="gobject-Signals.html#g-signal-handler-disconnect">g_signal_handler_disconnect</a>         (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-handler-find">g_signal_handler_find</a>               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-handlers-block-matched">g_signal_handlers_block_matched</a>     (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-handlers-unblock-matched">g_signal_handlers_unblock_matched</a>   (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               <a class="link" href="gobject-Signals.html#g-signal-handlers-disconnect-matched">g_signal_handlers_disconnect_matched</a>
                                                        (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-Signals.html#g-signal-handler-is-connected">g_signal_handler_is_connected</a>       (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);
#define             <a class="link" href="gobject-Signals.html#g-signal-handlers-block-by-func">g_signal_handlers_block_by_func</a>     (instance, func, data)
#define             <a class="link" href="gobject-Signals.html#g-signal-handlers-unblock-by-func">g_signal_handlers_unblock_by_func</a>   (instance, func, data)
#define             <a class="link" href="gobject-Signals.html#g-signal-handlers-disconnect-by-func">g_signal_handlers_disconnect_by_func</a>(instance, func, data)
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-Signals.html#g-signal-has-handler-pending">g_signal_has_handler_pending</a>        (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> may_be_blocked);
void                <a class="link" href="gobject-Signals.html#g-signal-stop-emission">g_signal_stop_emission</a>              (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail);
void                <a class="link" href="gobject-Signals.html#g-signal-stop-emission-by-name">g_signal_stop_emission_by_name</a>      (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal);
void                <a class="link" href="gobject-Signals.html#g-signal-override-class-closure">g_signal_override_class_closure</a>     (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> instance_type,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure);
void                <a class="link" href="gobject-Signals.html#g-signal-chain-from-overridden">g_signal_chain_from_overridden</a>      (const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *instance_and_params,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_value);
<a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              <a class="link" href="gobject-Signals.html#g-signal-add-emission-hook">g_signal_add_emission_hook</a>          (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Signals.html#GSignalEmissionHook">GSignalEmissionHook</a> hook_func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> hook_data,
                                                         <a
href="./../glib/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> data_destroy);
void                <a class="link" href="gobject-Signals.html#g-signal-remove-emission-hook">g_signal_remove_emission_hook</a>       (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> hook_id);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-Signals.html#g-signal-parse-name">g_signal_parse_name</a>                 (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *signal_id_p,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> *detail_p,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> force_detail_quark);
<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a>* <a class="link" href="gobject-Signals.html#g-signal-get-invocation-hint">g_signal_get_invocation_hint</a>     (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance);
<a class="link" href="gobject-Closures.html#GClosure">GClosure</a>*           <a class="link" href="gobject-Signals.html#g-signal-type-cclosure-new">g_signal_type_cclosure_new</a>          (<a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> struct_offset);
<a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            <a class="link" href="gobject-Signals.html#g-signal-accumulator-true-handled">g_signal_accumulator_true_handled</a>   (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_accu,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *handler_return,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> dummy);

</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2954560"></a><h2>Description</h2>
<p>
The basic concept of the signal system is that of the <span class="emphasis"><em>emission</em></span>
of a signal.
Signals are introduced per-type and are identified through strings.
Signals introduced for a parent type are available in derived types as well,
so basically they are a per-type facility that is inherited.
A signal emission mainly involves invocation of a certain set of callbacks in
precisely defined manner. There are two main categories of such callbacks,
per-object
	<sup>[<a name="id2954583" href="#ftn.id2954583" class="footnote">12</a>]</sup>
ones and user provided ones.
The per-object callbacks are most often referred to as "object method
handler" or "default (signal) handler", while user provided callbacks are
usually just called "signal handler".
The object method handler is provided at signal creation time (this most
frequently happens at the end of an object class' creation), while user
provided handlers are frequently connected and disconnected to/from a certain
signal on certain object instances.
</p>
<p>
A signal emission consists of five stages, unless prematurely stopped:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"></span></p></td>
<td><p>
	1 - Invocation of the object method handler for <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">G_SIGNAL_RUN_FIRST</code></a> signals
  </p></td>
</tr>
<tr>
<td><p><span class="term"></span></p></td>
<td><p>
	2 - Invocation of normal user-provided signal handlers (<span class="emphasis"><em>after</em></span> flag <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>)
  </p></td>
</tr>
<tr>
<td><p><span class="term"></span></p></td>
<td><p>
	3 - Invocation of the object method handler for <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a> signals
  </p></td>
</tr>
<tr>
<td><p><span class="term"></span></p></td>
<td><p>
	4 - Invocation of user provided signal handlers, connected with an <span class="emphasis"><em>after</em></span> flag of <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>
  </p></td>
</tr>
<tr>
<td><p><span class="term"></span></p></td>
<td><p>
	5 - Invocation of the object method handler for <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-CLEANUP:CAPS"><code class="literal">G_SIGNAL_RUN_CLEANUP</code></a> signals
  </p></td>
</tr>
</tbody>
</table></div>
<p>
The user-provided signal handlers are called in the order they were
connected in.
All handlers may prematurely stop a signal emission, and any number of
handlers may be connected, disconnected, blocked or unblocked during
a signal emission.
There are certain criteria for skipping user handlers in stages 2 and 4
of a signal emission.
First, user handlers may be <span class="emphasis"><em>blocked</em></span>, blocked handlers are omitted
during callback invocation, to return from the "blocked" state, a
handler has to get unblocked exactly the same amount of times
it has been blocked before.
Second, upon emission of a <a class="link" href="gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">G_SIGNAL_DETAILED</code></a> signal, an additional
"detail" argument passed in to <a class="link" href="gobject-Signals.html#g-signal-emit"><code class="function">g_signal_emit()</code></a> has to match the detail
argument of the signal handler currently subject to invocation.
Specification of no detail argument for signal handlers (omission of the
detail part of the signal specification upon connection) serves as a
wildcard and matches any detail argument passed in to emission.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2954759"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2954769"></a><h3>
<a name="GSignalInvocationHint"></a>GSignalInvocationHint</h3>
<a class="indexterm" name="id2954782"></a><pre class="programlisting">typedef struct {
  guint		signal_id;
  GQuark	detail;
  GSignalFlags	run_type;
} GSignalInvocationHint;
</pre>
<p>
The <a class="link" href="gobject-Signals.html#GSignalInvocationHint"><span class="type">GSignalInvocationHint</span></a> structure is used to pass on additional information
to callbacks during a signal emission.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>signal_id</code></em>;</span></p></td>
<td>	The signal id of the signal invoking the callback
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a>&#160;<em class="structfield"><code>detail</code></em>;</span></p></td>
<td>	The detail passed on for this emission
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a>&#160;<em class="structfield"><code>run_type</code></em>;</span></p></td>
<td>	The stage the signal emission is currently in, this
		field will contain one of <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">G_SIGNAL_RUN_FIRST</code></a>,
		<a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a> or <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-CLEANUP:CAPS"><code class="literal">G_SIGNAL_RUN_CLEANUP</code></a>.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2954910"></a><h3>
<a name="GSignalAccumulator"></a>GSignalAccumulator ()</h3>
<a class="indexterm" name="id2954924"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            (*GSignalAccumulator)               (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_accu,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *handler_return,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
The signal accumulator is a special callback function that can be used
to collect return values of the various callbacks that are called
during a signal emission. The signal accumulator is specified at signal
creation time, if it is left <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, no accumulation of callback return
values is performed. The return value of signal emissions is then the
value returned by the last callback.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ihint</code></em>&#160;:</span></p></td>
<td>	Signal invocation hint, see <a class="link" href="gobject-Signals.html#GSignalInvocationHint"><span class="type">GSignalInvocationHint</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_accu</code></em>&#160;:</span></p></td>
<td>	Accumulator to collect callback return values in, this
		is the return value of the current signal emission.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_return</code></em>&#160;:</span></p></td>
<td>A <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> holding the return value of the signal handler.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>         Callback data that was specified when creating the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>	The accumulator function returns whether the signal emission
		should be aborted. Returning <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> means to abort the
		current emission and <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> is returned for continuation.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955106"></a><h3>
<a name="GSignalCMarshaller"></a>GSignalCMarshaller</h3>
<a class="indexterm" name="id2955119"></a><pre class="programlisting">typedef GClosureMarshal			 GSignalCMarshaller;
</pre>
<p>
This is the signature of marshaller functions, required to marshall
arrays of parameter values to signal emissions into C language callback
invocations. It is merely an alias to <a class="link" href="gobject-Closures.html#GClosureMarshal"><span class="type">GClosureMarshal</span></a> since the <a class="link" href="gobject-Closures.html#GClosure"><span class="type">GClosure</span></a>
mechanism takes over responsibility of actual function invocation for the
signal system.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955156"></a><h3>
<a name="GSignalEmissionHook"></a>GSignalEmissionHook ()</h3>
<a class="indexterm" name="id2955170"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            (*GSignalEmissionHook)              (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_param_values,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *param_values,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
A simple function pointer to get invoked when the signal is emitted. This 
allows you to tie a hook to the signal type, so that it will trap all 
emissions of that signal, from any object.
</p>
<p>
You may not attach these to signals created with the <a class="link" href="gobject-Signals.html#G-SIGNAL-NO-HOOKS:CAPS"><span class="type">G_SIGNAL_NO_HOOKS</span></a> flag.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ihint</code></em>&#160;:</span></p></td>
<td>Signal invocation hint, see <a class="link" href="gobject-Signals.html#GSignalInvocationHint"><span class="type">GSignalInvocationHint</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_param_values</code></em>&#160;:</span></p></td>
<td>the number of parameters to the function, including
                 the instance on which the signal was emitted.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>param_values</code></em>&#160;:</span></p></td>
<td>the instance on which the signal was emitted, followed by the 
               parameters of the emission.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>user data associated with the hook.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>whether it wants to stay connected. If it returns <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, the signal 
          hook is disconnected (and destroyed).


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955334"></a><h3>
<a name="GSignalFlags"></a>enum GSignalFlags</h3>
<a class="indexterm" name="id2955347"></a><pre class="programlisting">typedef enum
{
  G_SIGNAL_RUN_FIRST	= 1 &lt;&lt; 0,
  G_SIGNAL_RUN_LAST	= 1 &lt;&lt; 1,
  G_SIGNAL_RUN_CLEANUP	= 1 &lt;&lt; 2,
  G_SIGNAL_NO_RECURSE	= 1 &lt;&lt; 3,
  G_SIGNAL_DETAILED	= 1 &lt;&lt; 4,
  G_SIGNAL_ACTION	= 1 &lt;&lt; 5,
  G_SIGNAL_NO_HOOKS	= 1 &lt;&lt; 6
} GSignalFlags;
</pre>
<p>
The signal flags are used to specify a signal's behaviour, the overall
signal description outlines how especially the RUN flags control the
stages of a signal emission.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-RUN-FIRST:CAPS"></a><code class="literal">G_SIGNAL_RUN_FIRST</code></span></p></td>
<td>  Invoke the object method handler in the first emission stage.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-RUN-LAST:CAPS"></a><code class="literal">G_SIGNAL_RUN_LAST</code></span></p></td>
<td>   Invoke the object method handler in the third emission stage.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-RUN-CLEANUP:CAPS"></a><code class="literal">G_SIGNAL_RUN_CLEANUP</code></span></p></td>
<td>Invoke the object method handler in the last emission stage.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-NO-RECURSE:CAPS"></a><code class="literal">G_SIGNAL_NO_RECURSE</code></span></p></td>
<td> Signals being emitted for an object while currently being in
                       emission for this very object will not be emitted recursively,
                       but instead cause the first emission to be restarted.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-DETAILED:CAPS"></a><code class="literal">G_SIGNAL_DETAILED</code></span></p></td>
<td>   This signal supports "::detail" appendices to the signal name
                       upon handler connections and emissions.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-ACTION:CAPS"></a><code class="literal">G_SIGNAL_ACTION</code></span></p></td>
<td>     Action signals are signals that may freely be emitted on alive
                       objects from user code via <a class="link" href="gobject-Signals.html#g-signal-emit"><code class="function">g_signal_emit()</code></a> and friends, without
                       the need of being embedded into extra code that performs pre or
                       post emission adjustments on the object. They can also be thought
                       of as object methods which can be called generically by 
                       third-party code.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-NO-HOOKS:CAPS"></a><code class="literal">G_SIGNAL_NO_HOOKS</code></span></p></td>
<td>   No emissions hooks are supported for this signal.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955561"></a><h3>
<a name="GSignalMatchType"></a>enum GSignalMatchType</h3>
<a class="indexterm" name="id2955574"></a><pre class="programlisting">typedef enum
{
  G_SIGNAL_MATCH_ID	   = 1 &lt;&lt; 0,
  G_SIGNAL_MATCH_DETAIL	   = 1 &lt;&lt; 1,
  G_SIGNAL_MATCH_CLOSURE   = 1 &lt;&lt; 2,
  G_SIGNAL_MATCH_FUNC	   = 1 &lt;&lt; 3,
  G_SIGNAL_MATCH_DATA	   = 1 &lt;&lt; 4,
  G_SIGNAL_MATCH_UNBLOCKED = 1 &lt;&lt; 5
} GSignalMatchType;
</pre>
<p>
The match types specify what <a class="link" href="gobject-Signals.html#g-signal-handlers-block-matched"><code class="function">g_signal_handlers_block_matched()</code></a>,
<a class="link" href="gobject-Signals.html#g-signal-handlers-unblock-matched"><code class="function">g_signal_handlers_unblock_matched()</code></a> and <a class="link" href="gobject-Signals.html#g-signal-handlers-disconnect-matched"><code class="function">g_signal_handlers_disconnect_matched()</code></a>
match signals by.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-ID:CAPS"></a><code class="literal">G_SIGNAL_MATCH_ID</code></span></p></td>
<td>The signal id must be equal.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-DETAIL:CAPS"></a><code class="literal">G_SIGNAL_MATCH_DETAIL</code></span></p></td>
<td>The signal detail be equal.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-CLOSURE:CAPS"></a><code class="literal">G_SIGNAL_MATCH_CLOSURE</code></span></p></td>
<td>The closure must be the same.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-FUNC:CAPS"></a><code class="literal">G_SIGNAL_MATCH_FUNC</code></span></p></td>
<td>The C closure callback must be the same.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-DATA:CAPS"></a><code class="literal">G_SIGNAL_MATCH_DATA</code></span></p></td>
<td>The closure data must be the same.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-SIGNAL-MATCH-UNBLOCKED:CAPS"></a><code class="literal">G_SIGNAL_MATCH_UNBLOCKED</code></span></p></td>
<td>Only unblocked signals may matched.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2955776"></a><h3>
<a name="GSignalQuery"></a>GSignalQuery</h3>
<a class="indexterm" name="id2955788"></a><pre class="programlisting">typedef struct {
  guint		signal_id;
  const gchar  *signal_name;
  GType		itype;
  GSignalFlags	signal_flags;
  GType		return_type; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */
  guint		n_params;
  const GType  *param_types; /* mangled with G_SIGNAL_TYPE_STATIC_SCOPE flag */
} GSignalQuery;
</pre>
<p>
A structure holding in-depth information for a specific signal. It is
filled in by the <a class="link" href="gobject-Signals.html#g-signal-query"><code class="function">g_signal_query()</code></a> function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>signal_id</code></em>;</span></p></td>
<td>	The signal id of the signal being queried, or 0 if the
		signal to be queried was unknown.
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>signal_name</code></em>;</span></p></td>
<td>	The signal name.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>itype</code></em>;</span></p></td>
<td>	The interface/instance type that this signal can be emitted for.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a>&#160;<em class="structfield"><code>signal_flags</code></em>;</span></p></td>
<td>	The signal flags as passed in to <a class="link" href="gobject-Signals.html#g-signal-new"><code class="function">g_signal_new()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;<em class="structfield"><code>return_type</code></em>;</span></p></td>
<td>	The return type for user callbacks.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>n_params</code></em>;</span></p></td>
<td>	The number of parameters that user callbacks take.
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a class="link" href="gobject-Type-Information.html#GType">GType</a>&#160;*<em class="structfield"><code>param_types</code></em>;</span></p></td>
<td>	The individual parameter types for user callbacks, note that the
		effective callback signature is:
<pre class="programlisting">
@return_type callback (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     data1,
                      [param_types param_names,]
                       <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     data2);
</pre>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956015"></a><h3>
<a name="G-SIGNAL-TYPE-STATIC-SCOPE:CAPS"></a>G_SIGNAL_TYPE_STATIC_SCOPE</h3>
<a class="indexterm" name="id2956029"></a><pre class="programlisting">#define	G_SIGNAL_TYPE_STATIC_SCOPE (G_TYPE_FLAG_RESERVED_ID_BIT)
</pre>
<p>
This macro flags signal argument types for which the signal system may 
assume that instances thereof remain persistent across all signal emissions
they are used in. This is only useful for non ref-counted, value-copy types.
</p>
<p>
To flag a signal argument in this way, add 
<code class="literal">| G_SIGNAL_TYPE_STATIC_SCOPE</code> to the corresponding argument
of <a class="link" href="gobject-Signals.html#g-signal-new"><code class="function">g_signal_new()</code></a>.
</p>
<div class="informalexample"><pre class="programlisting">
    g_signal_new ("size_request",
		  G_TYPE_FROM_CLASS (gobject_class),
		  G_SIGNAL_RUN_FIRST,
		  G_STRUCT_OFFSET (GtkWidgetClass, size_request),
		  NULL, NULL,
		  _gtk_marshal_VOID__BOXED,
		  G_TYPE_NONE, 1,
		  GTK_TYPE_REQUISITION | G_SIGNAL_TYPE_STATIC_SCOPE);
</pre></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956083"></a><h3>
<a name="G-SIGNAL-MATCH-MASK:CAPS"></a>G_SIGNAL_MATCH_MASK</h3>
<a class="indexterm" name="id2956096"></a><pre class="programlisting">#define G_SIGNAL_MATCH_MASK  0x3f
</pre>
<p>
A mask for all <a class="link" href="gobject-Signals.html#GSignalMatchType"><span class="type">GSignalMatchType</span></a> bits.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956120"></a><h3>
<a name="G-SIGNAL-FLAGS-MASK:CAPS"></a>G_SIGNAL_FLAGS_MASK</h3>
<a class="indexterm" name="id2956134"></a><pre class="programlisting">#define G_SIGNAL_FLAGS_MASK  0x7f
</pre>
<p>
A mask for all <a class="link" href="gobject-Signals.html#GSignalFlags"><span class="type">GSignalFlags</span></a> bits.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956158"></a><h3>
<a name="g-signal-new"></a>g_signal_new ()</h3>
<a class="indexterm" name="id2956170"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_new                        (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> class_offset,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         ...);</pre>
<p>
Creates a new signal. (This is usually done in the class initializer.)
</p>
<p>
A signal name consists of segments consisting of ASCII letters and
digits, separated by either the '-' or '_' character. The first
character of a signal name must be a letter. Names which violate these
rules lead to undefined behaviour of the GSignal system. 
</p>
<p>
When registering a signal and looking up a signal, either separator can
be used, but they cannot be mixed. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_name</code></em>&#160;:</span></p></td>
<td>the name for the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>the type this signal pertains to. It will also pertain to 
   types which are derived from this type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_flags</code></em>&#160;:</span></p></td>
<td>a combination of <a class="link" href="gobject-Signals.html#GSignalFlags"><span class="type">GSignalFlags</span></a> specifying detail of when 
   the default handler is to be invoked. You should at least specify 
   <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">G_SIGNAL_RUN_FIRST</code></a> or <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_offset</code></em>&#160;:</span></p></td>
<td>The offset of the function pointer in the class structure 
   for this type. Used to invoke a class method generically. Pass 0 to
   not associate a class method with this signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accumulator</code></em>&#160;:</span></p></td>
<td>the accumulator for this signal; may be <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accu_data</code></em>&#160;:</span></p></td>
<td>user data for the <em class="parameter"><code>accumulator</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_marshaller</code></em>&#160;:</span></p></td>
<td>the function to translate arrays of parameter values to 
   signal emissions into C language callback invocations.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_type</code></em>&#160;:</span></p></td>
<td>the type of return value, or <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a> for a signal 
    without a return value.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_params</code></em>&#160;:</span></p></td>
<td>the number of parameter types to follow.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td>
<td>a list of types, one for each parameter.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the signal id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956497"></a><h3>
<a name="g-signal-newv"></a>g_signal_newv ()</h3>
<a class="indexterm" name="id2956509"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_newv                       (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> *param_types);</pre>
<p>
Creates a new signal. (This is usually done in the class initializer.)
</p>
<p>
See <a class="link" href="gobject-Signals.html#g-signal-new"><code class="function">g_signal_new()</code></a> for details on allowed signal names.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_name</code></em>&#160;:</span></p></td>
<td>the name for the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>the type this signal pertains to. It will also pertain to 
   types which are derived from this type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_flags</code></em>&#160;:</span></p></td>
<td>a combination of <a class="link" href="gobject-Signals.html#GSignalFlags"><span class="type">GSignalFlags</span></a> specifying detail of when 
   the default handler is to be invoked. You should at least specify 
   <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">G_SIGNAL_RUN_FIRST</code></a> or <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_closure</code></em>&#160;:</span></p></td>
<td>The closure to invoke on signal emission; may be <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accumulator</code></em>&#160;:</span></p></td>
<td>the accumulator for this signal; may be <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accu_data</code></em>&#160;:</span></p></td>
<td>user data for the <em class="parameter"><code>accumulator</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_marshaller</code></em>&#160;:</span></p></td>
<td>the function to translate arrays of parameter values to 
    signal emissions into C language callback invocations.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_type</code></em>&#160;:</span></p></td>
<td>the type of return value, or <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a> for a signal 
    without a return value.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_params</code></em>&#160;:</span></p></td>
<td>the length of <em class="parameter"><code>param_types</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>param_types</code></em>&#160;:</span></p></td>
<td>an array types, one for each parameter.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the signal id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2956857"></a><h3>
<a name="g-signal-new-valist"></a>g_signal_new_valist ()</h3>
<a class="indexterm" name="id2956871"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_new_valist                 (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *signal_name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a class="link" href="gobject-Signals.html#GSignalFlags">GSignalFlags</a> signal_flags,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure,
                                                         <a class="link" href="gobject-Signals.html#GSignalAccumulator">GSignalAccumulator</a> accumulator,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> accu_data,
                                                         <a class="link" href="gobject-Signals.html#GSignalCMarshaller">GSignalCMarshaller</a> c_marshaller,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> return_type,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> n_params,
                                                         va_list args);</pre>
<p>
Creates a new signal. (This is usually done in the class initializer.)
</p>
<p>
See <a class="link" href="gobject-Signals.html#g-signal-new"><code class="function">g_signal_new()</code></a> for details on allowed signal names.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_name</code></em>&#160;:</span></p></td>
<td>the name for the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>the type this signal pertains to. It will also pertain to 
   types which are derived from this type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_flags</code></em>&#160;:</span></p></td>
<td>a combination of <a class="link" href="gobject-Signals.html#GSignalFlags"><span class="type">GSignalFlags</span></a> specifying detail of when 
   the default handler is to be invoked. You should at least specify 
   <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">G_SIGNAL_RUN_FIRST</code></a> or <a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_closure</code></em>&#160;:</span></p></td>
<td>The closure to invoke on signal emission; may be <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accumulator</code></em>&#160;:</span></p></td>
<td>the accumulator for this signal; may be <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accu_data</code></em>&#160;:</span></p></td>
<td>user data for the <em class="parameter"><code>accumulator</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_marshaller</code></em>&#160;:</span></p></td>
<td>the function to translate arrays of parameter values to 
   signal emissions into C language callback invocations.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_type</code></em>&#160;:</span></p></td>
<td>the type of return value, or <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a> for a signal 
   without a return value.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_params</code></em>&#160;:</span></p></td>
<td>the number of parameter types in <em class="parameter"><code>args</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em>&#160;:</span></p></td>
<td>va_list of <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a>, one for each parameter.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the signal id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957226"></a><h3>
<a name="g-signal-query"></a>g_signal_query ()</h3>
<a class="indexterm" name="id2957239"></a><pre class="programlisting">void                g_signal_query                      (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a class="link" href="gobject-Signals.html#GSignalQuery">GSignalQuery</a> *query);</pre>
<p>
Queries the signal system for in-depth information about a
specific signal. This function will fill in a user-provided
structure to hold signal-specific information. If an invalid
signal id is passed in, the <em class="parameter"><code>signal_id</code></em> member of the <a class="link" href="gobject-Signals.html#GSignalQuery"><span class="type">GSignalQuery</span></a>
is 0. All members filled into the <a class="link" href="gobject-Signals.html#GSignalQuery"><span class="type">GSignalQuery</span></a> structure should
be considered constant and have to be left untouched.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>The signal id of the signal to query information for.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em>&#160;:</span></p></td>
<td>A user provided structure that is filled in with constant
         values upon success.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957338"></a><h3>
<a name="g-signal-lookup"></a>g_signal_lookup ()</h3>
<a class="indexterm" name="id2957351"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_lookup                     (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype);</pre>
<p>
Given the name of the signal and the type of object it connects to, gets 
the signal's identifying integer. Emitting the signal by number is 
somewhat faster than using the name each time.
</p>
<p>
Also tries the ancestors of the given type.
</p>
<p>
See <a class="link" href="gobject-Signals.html#g-signal-new"><code class="function">g_signal_new()</code></a> for details on allowed signal names.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>the signal's name.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>the type that the signal operates on.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the signal's identifying number, or 0 if no signal was found.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957453"></a><h3>
<a name="g-signal-name"></a>g_signal_name ()</h3>
<a class="indexterm" name="id2957466"></a><pre class="programlisting">const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>*        g_signal_name                       (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id);</pre>
<p>
Given the signal's identifier, finds its name.
</p>
<p>
Two different signals may have the same name, if they have differing types.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal's identifying number.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the signal name, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the signal number was invalid.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957541"></a><h3>
<a name="g-signal-list-ids"></a>g_signal_list_ids ()</h3>
<a class="indexterm" name="id2957555"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>*              g_signal_list_ids                   (<a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *n_ids);</pre>
<p>
Lists the signals by id that a certain instance or interface type
created. Further information about the signals can be acquired through
<a class="link" href="gobject-Signals.html#g-signal-query"><code class="function">g_signal_query()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>Instance or interface type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_ids</code></em>&#160;:</span></p></td>
<td>Location to store the number of signal ids for <em class="parameter"><code>itype</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>Newly allocated array of signal IDs.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957653"></a><h3>
<a name="g-signal-emit"></a>g_signal_emit ()</h3>
<a class="indexterm" name="id2957666"></a><pre class="programlisting">void                g_signal_emit                       (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         ...);</pre>
<p>
Emits a signal. 
</p>
<p>
Note that <a class="link" href="gobject-Signals.html#g-signal-emit"><code class="function">g_signal_emit()</code></a> resets the return value to the default
if no handlers are connected, in contrast to <a class="link" href="gobject-Signals.html#g-signal-emitv"><code class="function">g_signal_emitv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance the signal is being emitted on.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal id
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td>
<td>parameters to be passed to the signal, followed by a
           location for the return value. If the return type of the signal
           is <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a>, the return value location can be omitted.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957809"></a><h3>
<a name="g-signal-emit-by-name"></a>g_signal_emit_by_name ()</h3>
<a class="indexterm" name="id2957822"></a><pre class="programlisting">void                g_signal_emit_by_name               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         ...);</pre>
<p>
Emits a signal. 
</p>
<p>
Note that <a class="link" href="gobject-Signals.html#g-signal-emit-by-name"><code class="function">g_signal_emit_by_name()</code></a> resets the return value to the default
if no handlers are connected, in contrast to <a class="link" href="gobject-Signals.html#g-signal-emitv"><code class="function">g_signal_emitv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance the signal is being emitted on.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></p></td>
<td>parameters to be passed to the signal, followed by a
          location for the return value. If the return type of the signal
          is <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a>, the return value location can be omitted.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2957944"></a><h3>
<a name="g-signal-emitv"></a>g_signal_emitv ()</h3>
<a class="indexterm" name="id2957957"></a><pre class="programlisting">void                g_signal_emitv                      (const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *instance_and_params,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_value);</pre>
<p>
Emits a signal. 
</p>
<p>
Note that <a class="link" href="gobject-Signals.html#g-signal-emitv"><code class="function">g_signal_emitv()</code></a> doesn't change <em class="parameter"><code>return_value</code></em> if no handlers are
connected, in contrast to <a class="link" href="gobject-Signals.html#g-signal-emit"><code class="function">g_signal_emit()</code></a> and <a class="link" href="gobject-Signals.html#g-signal-emit-valist"><code class="function">g_signal_emit_valist()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance_and_params</code></em>&#160;:</span></p></td>
<td>argument list for the signal emission. The first 
     element in the array is a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> for the instance the signal is 
     being emitted on. The rest are any arguments to be passed to the 
     signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal id
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_value</code></em>&#160;:</span></p></td>
<td>Location to store the return value of the signal emission.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958124"></a><h3>
<a name="g-signal-emit-valist"></a>g_signal_emit_valist ()</h3>
<a class="indexterm" name="id2958137"></a><pre class="programlisting">void                g_signal_emit_valist                (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         va_list var_args);</pre>
<p>
Emits a signal. 
</p>
<p>
Note that <a class="link" href="gobject-Signals.html#g-signal-emit-valist"><code class="function">g_signal_emit_valist()</code></a> resets the return value to the default
if no handlers are connected, in contrast to <a class="link" href="gobject-Signals.html#g-signal-emitv"><code class="function">g_signal_emitv()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance the signal is being emitted on.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal id
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>var_args</code></em>&#160;:</span></p></td>
<td>a list of parameters to be passed to the signal, followed by a
           location for the return value. If the return type of the signal
           is <a class="link" href="gobject-Type-Information.html#G-TYPE-NONE:CAPS"><span class="type">G_TYPE_NONE</span></a>, the return value location can be omitted.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958288"></a><h3>
<a name="g-signal-connect"></a>g_signal_connect()</h3>
<a class="indexterm" name="id2958301"></a><pre class="programlisting">#define             g_signal_connect(instance, detailed_signal, c_handler, data)</pre>
<p>
Connects a <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> function to a signal for a particular object.
</p>
<p>
The handler will be called before the default handler of the signal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_handler</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>data to pass to <em class="parameter"><code>c_handler</code></em> calls.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958416"></a><h3>
<a name="g-signal-connect-after"></a>g_signal_connect_after()</h3>
<a class="indexterm" name="id2958429"></a><pre class="programlisting">#define             g_signal_connect_after(instance, detailed_signal, c_handler, data)</pre>
<p>
Connects a <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> function to a signal for a particular object.
</p>
<p>
The handler will be called after the default handler of the signal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_handler</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>data to pass to <em class="parameter"><code>c_handler</code></em> calls.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958544"></a><h3>
<a name="g-signal-connect-swapped"></a>g_signal_connect_swapped()</h3>
<a class="indexterm" name="id2958558"></a><pre class="programlisting">#define             g_signal_connect_swapped(instance, detailed_signal, c_handler, data)</pre>
<p>
Connects a <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> function to a signal for a particular object.
</p>
<p>
The instance on which the signal is emitted and <em class="parameter"><code>data</code></em> will be swapped when 
calling the handler.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_handler</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>data to pass to <em class="parameter"><code>c_handler</code></em> calls.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958679"></a><h3>
<a name="g-signal-connect-object"></a>g_signal_connect_object ()</h3>
<a class="indexterm" name="id2958693"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_connect_object             (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GCallback">GCallback</a> c_handler,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> gobject,
                                                         <a class="link" href="gobject-Signals.html#GConnectFlags">GConnectFlags</a> connect_flags);</pre>
<p>
 This is similar to <a class="link" href="gobject-Signals.html#g-signal-connect-data"><code class="function">g_signal_connect_data()</code></a>, but uses a closure which
 ensures that the <em class="parameter"><code>gobject</code></em> stays alive during the call to <em class="parameter"><code>c_handler</code></em>
 by temporarily adding a reference count to <em class="parameter"><code>gobject</code></em>.
</p>
<p>
 Note that there is a bug in GObject that makes this function
 much less useful than it might seem otherwise. Once <em class="parameter"><code>gobject</code></em> is
 disposed, the callback will no longer be called, but, the signal
 handler is <span class="emphasis"><em>not</em></span> currently disconnected. If the
 <em class="parameter"><code>instance</code></em> is itself being freed at the same time than this doesn't
 matter, since the signal will automatically be removed, but
 if <em class="parameter"><code>instance</code></em> persists, then the signal handler will leak. You
 should not remove the signal yourself because in a future versions of
 GObject, the handler <span class="emphasis"><em>will</em></span> automatically
 be disconnected.
</p>
<p>
 It's possible to work around this problem in a way that will
 continue to work with future versions of GObject by checking
 that the signal handler is still connected before disconnected it:
</p>
<div class="informalexample"><pre class="programlisting">
 if (g_signal_handler_is_connected (instance, id))
   g_signal_handler_disconnect (instance, id);
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_handler</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gobject</code></em>&#160;:</span></p></td>
<td>the object to pass as data to <em class="parameter"><code>c_handler</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connect_flags</code></em>&#160;:</span></p></td>
<td>a combination of <span class="type">GConnnectFlags</span>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2958945"></a><h3>
<a name="GConnectFlags"></a>enum GConnectFlags</h3>
<a class="indexterm" name="id2958958"></a><pre class="programlisting">typedef enum
{
  G_CONNECT_AFTER	= 1 &lt;&lt; 0,
  G_CONNECT_SWAPPED	= 1 &lt;&lt; 1
} GConnectFlags;
</pre>
<p>
The connection flags are used to specify the behaviour of a signal's 
connection.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a name="G-CONNECT-AFTER:CAPS"></a><code class="literal">G_CONNECT_AFTER</code></span></p></td>
<td>whether the handler should be called before or after the 
                  default handler of the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-CONNECT-SWAPPED:CAPS"></a><code class="literal">G_CONNECT_SWAPPED</code></span></p></td>
<td>whether the instance and data should be swapped when
                  calling the handler.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959030"></a><h3>
<a name="g-signal-connect-data"></a>g_signal_connect_data ()</h3>
<a class="indexterm" name="id2959042"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_connect_data               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GCallback">GCallback</a> c_handler,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                                         <a class="link" href="gobject-Closures.html#GClosureNotify">GClosureNotify</a> destroy_data,
                                                         <a class="link" href="gobject-Signals.html#GConnectFlags">GConnectFlags</a> connect_flags);</pre>
<p>
Connects a <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> function to a signal for a particular object. Similar
to <a class="link" href="gobject-Signals.html#g-signal-connect"><code class="function">g_signal_connect()</code></a>, but allows to provide a <a class="link" href="gobject-Closures.html#GClosureNotify"><span class="type">GClosureNotify</span></a> for the data
which will be called when the signal handler is disconnected and no longer
used. Specify <em class="parameter"><code>connect_flags</code></em> if you need <code class="literal">...<code class="function">_after()</code></code> pr
<code class="literal">...<code class="function">_swapped()</code></code> variants of this function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>c_handler</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>data to pass to <em class="parameter"><code>c_handler</code></em> calls.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy_data</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Closures.html#GClosureNotify"><span class="type">GClosureNotify</span></a> for <em class="parameter"><code>data</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connect_flags</code></em>&#160;:</span></p></td>
<td>a combination of <a class="link" href="gobject-Signals.html#GConnectFlags"><span class="type">GConnectFlags</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959316"></a><h3>
<a name="g-signal-connect-closure"></a>g_signal_connect_closure ()</h3>
<a class="indexterm" name="id2959329"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_connect_closure            (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> after);</pre>
<p>
Connects a closure to a signal for a particular object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>the closure to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>after</code></em>&#160;:</span></p></td>
<td>whether the handler should be called before or after the 
        default handler of the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959456"></a><h3>
<a name="g-signal-connect-closure-by-id"></a>g_signal_connect_closure_by_id ()</h3>
<a class="indexterm" name="id2959469"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_connect_closure_by_id      (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> after);</pre>
<p>
Connects a closure to a signal for a particular object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to connect to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the id of the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>the closure to connect.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>after</code></em>&#160;:</span></p></td>
<td>whether the handler should be called before or after the 
        default handler of the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the handler id


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959617"></a><h3>
<a name="g-signal-handler-block"></a>g_signal_handler_block ()</h3>
<a class="indexterm" name="id2959630"></a><pre class="programlisting">void                g_signal_handler_block              (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);</pre>
<p>
Blocks a handler of an instance so it will not be called during 
any signal emissions unless it is unblocked again. Thus "blocking" 
a signal handler means to temporarily deactive it, a signal handler 
has to be unblocked exactly the same amount of times it has been 
blocked before to become active again.
</p>
<p>
The <em class="parameter"><code>handler_id</code></em> has to be a valid signal handler id, connected to a 
signal of <em class="parameter"><code>instance</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to block the signal handler of.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_id</code></em>&#160;:</span></p></td>
<td>Handler id of the handler to be blocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959721"></a><h3>
<a name="g-signal-handler-unblock"></a>g_signal_handler_unblock ()</h3>
<a class="indexterm" name="id2959734"></a><pre class="programlisting">void                g_signal_handler_unblock            (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);</pre>
<p>
Undoes the effect of a previous <a class="link" href="gobject-Signals.html#g-signal-handler-block"><code class="function">g_signal_handler_block()</code></a> call. 
A blocked handler is skipped during signal emissions and will not be 
invoked, unblocking it (for exactly the amount of times it has been 
blocked before) reverts its "blocked" state, so the handler will be 
recognized by the signal system and is called upon future or currently
ongoing signal emissions (since the order in which handlers are
called during signal emissions is deterministic, whether the
unblocked handler in question is called as part of a currently
ongoing emission depends on how far that emission has proceeded
yet).
</p>
<p>
The <em class="parameter"><code>handler_id</code></em> has to be a valid id of a signal handler that is 
connected to a signal of <em class="parameter"><code>instance</code></em> and is currently blocked.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to unblock the signal handler of.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_id</code></em>&#160;:</span></p></td>
<td>Handler id of the handler to be unblocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959842"></a><h3>
<a name="g-signal-handler-disconnect"></a>g_signal_handler_disconnect ()</h3>
<a class="indexterm" name="id2959856"></a><pre class="programlisting">void                g_signal_handler_disconnect         (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);</pre>
<p>
Disconnects a handler from an instance so it will not be called during 
any future or currently ongoing emissions of the signal it has been 
connected to. The <em class="parameter"><code>handler_id</code></em> becomes invalid and may be reused.
</p>
<p>
The <em class="parameter"><code>handler_id</code></em> has to be a valid signal handler id, connected to a 
signal of <em class="parameter"><code>instance</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to remove the signal handler from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_id</code></em>&#160;:</span></p></td>
<td>Handler id of the handler to be disconnected.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2959950"></a><h3>
<a name="g-signal-handler-find"></a>g_signal_handler_find ()</h3>
<a class="indexterm" name="id2959964"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_handler_find               (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Finds the first signal handler that matches certain selection criteria.
The criteria mask is passed as an OR-ed combination of <a class="link" href="gobject-Signals.html#GSignalMatchType"><span class="type">GSignalMatchType</span></a>
flags, and the criteria values are passed as arguments.
The match <em class="parameter"><code>mask</code></em> has to be non-0 for successful matches.
If no handler was found, 0 is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance owning the signal handler to be found.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em>&#160;:</span></p></td>
<td>Mask indicating which of <em class="parameter"><code>signal_id</code></em>, <em class="parameter"><code>detail</code></em>, <em class="parameter"><code>closure</code></em>, <em class="parameter"><code>func</code></em> 
       and/or <em class="parameter"><code>data</code></em> the handler has to match.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>Signal the handler has to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>Signal detail the handler has to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>The closure the handler will invoke.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handler (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handler's closure.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>A valid non-0 signal handler id for a successful match.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2960205"></a><h3>
<a name="g-signal-handlers-block-matched"></a>g_signal_handlers_block_matched ()</h3>
<a class="indexterm" name="id2960218"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_handlers_block_matched     (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Blocks all handlers on an instance that match a certain selection criteria.
The criteria mask is passed as an OR-ed combination of <a class="link" href="gobject-Signals.html#GSignalMatchType"><span class="type">GSignalMatchType</span></a> 
flags, and the criteria values are passed as arguments.
Passing at least one of the <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-CLOSURE:CAPS"><code class="literal">G_SIGNAL_MATCH_CLOSURE</code></a>, <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-FUNC:CAPS"><code class="literal">G_SIGNAL_MATCH_FUNC</code></a>
or <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-DATA:CAPS"><code class="literal">G_SIGNAL_MATCH_DATA</code></a> match flags is required for successful matches.
If no handlers were found, 0 is returned, the number of blocked handlers
otherwise.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to block handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em>&#160;:</span></p></td>
<td>Mask indicating which of <em class="parameter"><code>signal_id</code></em>, <em class="parameter"><code>detail</code></em>, <em class="parameter"><code>closure</code></em>, <em class="parameter"><code>func</code></em> 
       and/or <em class="parameter"><code>data</code></em> the handlers have to match.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>Signal the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>Signal detail the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>The closure the handlers will invoke.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The amount of handlers that got blocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2960490"></a><h3>
<a name="g-signal-handlers-unblock-matched"></a>g_signal_handlers_unblock_matched ()</h3>
<a class="indexterm" name="id2960505"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_handlers_unblock_matched   (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Unblocks all handlers on an instance that match a certain selection
criteria. The criteria mask is passed as an OR-ed combination of
<a class="link" href="gobject-Signals.html#GSignalMatchType"><span class="type">GSignalMatchType</span></a> flags, and the criteria values are passed as arguments.
Passing at least one of the <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-CLOSURE:CAPS"><code class="literal">G_SIGNAL_MATCH_CLOSURE</code></a>, <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-FUNC:CAPS"><code class="literal">G_SIGNAL_MATCH_FUNC</code></a>
or <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-DATA:CAPS"><code class="literal">G_SIGNAL_MATCH_DATA</code></a> match flags is required for successful matches.
If no handlers were found, 0 is returned, the number of unblocked handlers
otherwise. The match criteria should not apply to any handlers that are
not currently blocked.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to unblock handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em>&#160;:</span></p></td>
<td>Mask indicating which of <em class="parameter"><code>signal_id</code></em>, <em class="parameter"><code>detail</code></em>, <em class="parameter"><code>closure</code></em>, <em class="parameter"><code>func</code></em> 
       and/or <em class="parameter"><code>data</code></em> the handlers have to match.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>Signal the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>Signal detail the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>The closure the handlers will invoke.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The amount of handlers that got unblocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2960775"></a><h3>
<a name="g-signal-handlers-disconnect-matched"></a>g_signal_handlers_disconnect_matched ()</h3>
<a class="indexterm" name="id2960789"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>               g_signal_handlers_disconnect_matched
                                                        (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a class="link" href="gobject-Signals.html#GSignalMatchType">GSignalMatchType</a> mask,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *closure,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
Disconnects all handlers on an instance that match a certain selection 
criteria. The criteria mask is passed as an OR-ed combination of
<a class="link" href="gobject-Signals.html#GSignalMatchType"><span class="type">GSignalMatchType</span></a> flags, and the criteria values are passed as arguments.
Passing at least one of the <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-CLOSURE:CAPS"><code class="literal">G_SIGNAL_MATCH_CLOSURE</code></a>, <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-FUNC:CAPS"><code class="literal">G_SIGNAL_MATCH_FUNC</code></a>
or <a class="link" href="gobject-Signals.html#G-SIGNAL-MATCH-DATA:CAPS"><code class="literal">G_SIGNAL_MATCH_DATA</code></a> match flags is required for successful matches.
If no handlers were found, 0 is returned, the number of disconnected 
handlers otherwise.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to remove handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em>&#160;:</span></p></td>
<td>Mask indicating which of <em class="parameter"><code>signal_id</code></em>, <em class="parameter"><code>detail</code></em>, <em class="parameter"><code>closure</code></em>, <em class="parameter"><code>func</code></em> 
       and/or <em class="parameter"><code>data</code></em> the handlers have to match.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>Signal the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>Signal detail the handlers have to be connected to.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
<td>The closure the handlers will invoke.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The amount of handlers that got disconnected.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961059"></a><h3>
<a name="g-signal-handler-is-connected"></a>g_signal_handler_is_connected ()</h3>
<a class="indexterm" name="id2961073"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_signal_handler_is_connected       (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> handler_id);</pre>
<p>
Returns whether <em class="parameter"><code>handler_id</code></em> is the id of a handler connected to <em class="parameter"><code>instance</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance where a signal handler is sought.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_id</code></em>&#160;:</span></p></td>
<td>the handler id.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>whether <em class="parameter"><code>handler_id</code></em> identifies a handler connected to <em class="parameter"><code>instance</code></em>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961178"></a><h3>
<a name="g-signal-handlers-block-by-func"></a>g_signal_handlers_block_by_func()</h3>
<a class="indexterm" name="id2961191"></a><pre class="programlisting">#define             g_signal_handlers_block_by_func(instance, func, data)</pre>
<p>
Blocks all handlers on an instance that match <em class="parameter"><code>func</code></em> and <em class="parameter"><code>data</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to block handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The number of handlers that got blocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961279"></a><h3>
<a name="g-signal-handlers-unblock-by-func"></a>g_signal_handlers_unblock_by_func()</h3>
<a class="indexterm" name="id2961293"></a><pre class="programlisting">#define             g_signal_handlers_unblock_by_func(instance, func, data)</pre>
<p>
Unblocks all handlers on an instance that match <em class="parameter"><code>func</code></em> and <em class="parameter"><code>data</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to unblock handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The number of handlers that got unblocked.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961381"></a><h3>
<a name="g-signal-handlers-disconnect-by-func"></a>g_signal_handlers_disconnect_by_func()</h3>
<a class="indexterm" name="id2961395"></a><pre class="programlisting">#define             g_signal_handlers_disconnect_by_func(instance, func, data)</pre>
<p>
Disconnects all handlers on an instance that match <em class="parameter"><code>func</code></em> and <em class="parameter"><code>data</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>The instance to remove handlers from.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></p></td>
<td>The C closure callback of the handlers (useless for non-C closures).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td>The closure data of the handlers' closures.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The number of handlers that got disconnected.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961483"></a><h3>
<a name="g-signal-has-handler-pending"></a>g_signal_has_handler_pending ()</h3>
<a class="indexterm" name="id2961497"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_signal_has_handler_pending        (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> may_be_blocked);</pre>
<p>
Returns whether there are any handlers connected to <em class="parameter"><code>instance</code></em> for the
given signal id and detail.
</p>
<p>
One example of when you might use this is when the arguments to the 
signal are difficult to compute. A class implementor may opt to not emit 
the signal if no one is attached anyway, thus saving the cost of building
the arguments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the object whose signal handlers are sought.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal id.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>may_be_blocked</code></em>&#160;:</span></p></td>
<td>whether blocked handlers should count as match.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>
<a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a handler is connected to the signal, 
          <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961656"></a><h3>
<a name="g-signal-stop-emission"></a>g_signal_stop_emission ()</h3>
<a class="indexterm" name="id2961669"></a><pre class="programlisting">void                g_signal_stop_emission              (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail);</pre>
<p>
Stops a signal's current emission.
</p>
<p>
This will prevent the default method from running, if the signal was
<a class="link" href="gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">G_SIGNAL_RUN_LAST</code></a> and you connected normally (i.e. without the "after" 
flag).
</p>
<p>
Prints a warning if used on a signal which isn't being emitted.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the object whose signal handlers you wish to stop.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal identifier, as returned by <a class="link" href="gobject-Signals.html#g-signal-lookup"><code class="function">g_signal_lookup()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail which the signal was emitted with.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961793"></a><h3>
<a name="g-signal-stop-emission-by-name"></a>g_signal_stop_emission_by_name ()</h3>
<a class="indexterm" name="id2961806"></a><pre class="programlisting">void                g_signal_stop_emission_by_name      (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal);</pre>
<p>
Stops a signal's current emission.
</p>
<p>
This is just like <a class="link" href="gobject-Signals.html#g-signal-stop-emission"><code class="function">g_signal_stop_emission()</code></a> except it will look up the 
signal id for you.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the object whose signal handlers you wish to stop.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2961892"></a><h3>
<a name="g-signal-override-class-closure"></a>g_signal_override_class_closure ()</h3>
<a class="indexterm" name="id2961906"></a><pre class="programlisting">void                g_signal_override_class_closure     (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> instance_type,
                                                         <a class="link" href="gobject-Closures.html#GClosure">GClosure</a> *class_closure);</pre>
<p>
Overrides the class closure (i.e. the default handler) for the given signal
for emissions on instances of <em class="parameter"><code>instance_type</code></em>. <em class="parameter"><code>instance_type</code></em> must be derived
from the type to which the signal belongs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal id
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance_type</code></em>&#160;:</span></p></td>
<td>the instance type on which to override the class closure 
                for the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_closure</code></em>&#160;:</span></p></td>
<td>the closure.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962013"></a><h3>
<a name="g-signal-chain-from-overridden"></a>g_signal_chain_from_overridden ()</h3>
<a class="indexterm" name="id2962026"></a><pre class="programlisting">void                g_signal_chain_from_overridden      (const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *instance_and_params,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_value);</pre>
<p>
Calls the original class closure of a signal. This function should only
be called from an overridden class closure; see 
<a class="link" href="gobject-Signals.html#g-signal-override-class-closure"><code class="function">g_signal_override_class_closure()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance_and_params</code></em>&#160;:</span></p></td>
<td> the argument list of the signal emission. The first 
  element in the array is a <a class="link" href="gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> for the instance the signal is being 
  emitted on. The rest are any arguments to be passed to the signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_value</code></em>&#160;:</span></p></td>
<td>Location for the return value.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962120"></a><h3>
<a name="g-signal-add-emission-hook"></a>g_signal_add_emission_hook ()</h3>
<a class="indexterm" name="id2962134"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a>              g_signal_add_emission_hook          (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> detail,
                                                         <a class="link" href="gobject-Signals.html#GSignalEmissionHook">GSignalEmissionHook</a> hook_func,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> hook_data,
                                                         <a
href="./../glib/glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> data_destroy);</pre>
<p>
Adds an emission hook for a signal, which will get called for any emission
of that signal, independent of the instance. This is possible only
for signals which don't have <a class="link" href="gobject-Signals.html#G-SIGNAL-NO-HOOKS:CAPS"><span class="type">G_SIGNAL_NO_HOOKS</span></a> flag set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the signal identifier, as returned by <a class="link" href="gobject-Signals.html#g-signal-lookup"><code class="function">g_signal_lookup()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></p></td>
<td>the detail on which to call the hook.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>hook_func</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Signals.html#GSignalEmissionHook"><span class="type">GSignalEmissionHook</span></a> function.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>hook_data</code></em>&#160;:</span></p></td>
<td>user data for <em class="parameter"><code>hook_func</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_destroy</code></em>&#160;:</span></p></td>
<td>a <a
href="./../glib/glib/glib-Datasets.html#GDestroyNotify"
><span class="type">GDestroyNotify</span></a> for <em class="parameter"><code>hook_data</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the hook id, for later use with <a class="link" href="gobject-Signals.html#g-signal-remove-emission-hook"><code class="function">g_signal_remove_emission_hook()</code></a>.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962342"></a><h3>
<a name="g-signal-remove-emission-hook"></a>g_signal_remove_emission_hook ()</h3>
<a class="indexterm" name="id2962355"></a><pre class="programlisting">void                g_signal_remove_emission_hook       (<a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> signal_id,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gulong"
>gulong</a> hook_id);</pre>
<p>
Deletes an emission hook.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></p></td>
<td>the id of the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>hook_id</code></em>&#160;:</span></p></td>
<td>the id of the emission hook, as returned by 
<a class="link" href="gobject-Signals.html#g-signal-add-emission-hook"><code class="function">g_signal_add_emission_hook()</code></a>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962436"></a><h3>
<a name="g-signal-parse-name"></a>g_signal_parse_name ()</h3>
<a class="indexterm" name="id2962449"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_signal_parse_name                 (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *detailed_signal,
                                                         <a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> *signal_id_p,
                                                         <a
href="./../glib/glib/glib-Quarks.html#GQuark"
>GQuark</a> *detail_p,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> force_detail_quark);</pre>
<p>
Internal function to parse a signal name into its <em class="parameter"><code>signal_id</code></em>
and <em class="parameter"><code>detail</code></em> quark.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>detailed_signal</code></em>&#160;:</span></p></td>
<td>a string of the form "signal-name::detail".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>The interface/instance type that introduced "signal-name".
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal_id_p</code></em>&#160;:</span></p></td>
<td>Location to store the signal id.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail_p</code></em>&#160;:</span></p></td>
<td>Location to store the detail quark.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>force_detail_quark</code></em>&#160;:</span></p></td>
<td>
<a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> forces creation of a <a
href="./../glib/glib/glib-Quarks.html#GQuark"
><span class="type">GQuark</span></a> for the detail.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>Whether the signal name could successfully be parsed and <em class="parameter"><code>signal_id_p</code></em> and <em class="parameter"><code>detail_p</code></em> contain valid return values.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962639"></a><h3>
<a name="g-signal-get-invocation-hint"></a>g_signal_get_invocation_hint ()</h3>
<a class="indexterm" name="id2962653"></a><pre class="programlisting"><a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a>* g_signal_get_invocation_hint     (<a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> instance);</pre>
<p>
Returns the invocation hint of the innermost signal emission of instance. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>instance</code></em>&#160;:</span></p></td>
<td>the instance to query
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the invocation hint of the innermost signal emission.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962713"></a><h3>
<a name="g-signal-type-cclosure-new"></a>g_signal_type_cclosure_new ()</h3>
<a class="indexterm" name="id2962727"></a><pre class="programlisting"><a class="link" href="gobject-Closures.html#GClosure">GClosure</a>*           g_signal_type_cclosure_new          (<a class="link" href="gobject-Type-Information.html#GType">GType</a> itype,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> struct_offset);</pre>
<p>
Creates a new closure which invokes the function found at the offset
<em class="parameter"><code>struct_offset</code></em> in the class structure of the interface or classed type
identified by <em class="parameter"><code>itype</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>itype</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> identifier of an interface or classed type
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>struct_offset</code></em>&#160;:</span></p></td>
<td>the offset of the member function of <em class="parameter"><code>itype</code></em>'s class 
  structure which is to be invoked by the new closure
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>a new <a class="link" href="gobject-Closures.html#GCClosure"><span class="type">GCClosure</span></a>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2962843"></a><h3>
<a name="g-signal-accumulator-true-handled"></a>g_signal_accumulator_true_handled ()</h3>
<a class="indexterm" name="id2962859"></a><pre class="programlisting"><a
href="./../glib/glib/glib-Basic-Types.html#gboolean"
>gboolean</a>            g_signal_accumulator_true_handled   (<a class="link" href="gobject-Signals.html#GSignalInvocationHint">GSignalInvocationHint</a> *ihint,
                                                         <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *return_accu,
                                                         const <a class="link" href="gobject-Generic-values.html#GValue">GValue</a> *handler_return,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> dummy);</pre>
<p>
A predefined <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> for signals that return a
boolean values. The behavior that this accumulator gives is
that a return of <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> stops the signal emission: no further
callbacks will be invoked, while a return of <a
href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> allows
the emission to coninue. The idea here is that a <a
href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> return
indicates that the callback <span class="emphasis"><em>handled</em></span> the signal,
and no further handling is needed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ihint</code></em>&#160;:</span></p></td>
<td>standard <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> parameter
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>return_accu</code></em>&#160;:</span></p></td>
<td>standard <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> parameter
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>handler_return</code></em>&#160;:</span></p></td>
<td>standard <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> parameter
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dummy</code></em>&#160;:</span></p></td>
<td>standard <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> parameter
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>standard <a class="link" href="gobject-Signals.html#GSignalAccumulator"><span class="type">GSignalAccumulator</span></a> result
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4


</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2963080"></a><div class="refsect2" lang="en"><a name="id2963081"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2963082"></a></div>
</div>
<div class="footnotes">
<br><hr width="100" align="left">
<div class="footnote"><p><sup>[<a name="ftn.id2954583" href="#id2954583" class="para">12</a>] </sup>Although signals can deal with any kind of instantiatable type,
	i'm referring to those types as "object types" in the following, simply
	because that is the context most users will encounter signals in.
	</p></div>
</div>
</div>
</body>
</html>
